import request from '@/util/request'

export default {
    // 1. 查询SpecificationOption
    findSpecificationOption(){
        return request({
            url: '/specificationOption/list.do',
            method: 'get',
        })
    },
    // 条件查询带分页
    search(page,pageSize,data){
        console.log("search request")
        return request({
            url: `/specificationOption/search.do?page=${page}&pageSize=${pageSize}`,
            method: 'post',
            data
        })
    },
    save(data){
        return request({
            url: '/specificationOption/save.do',
            method: 'post',
            data
        })
    }
}
